package models

import (
	"time"
)

// YhConfig 配置表
type Config struct {
	ID        int64     `json:"id" gorm:"id"`
	GroupId   int8      `json:"group_id" gorm:"group_id"`
	Name      string    `json:"name" gorm:"name"`
	Value     string    `json:"value" gorm:"value"`
	Title     string    `json:"title" gorm:"title"`
	Tip       string    `json:"tip" gorm:"tip"`
	Type      string    `json:"type" gorm:"type"`
	CreatedAt time.Time `json:"created_at" gorm:"created_at"`
	UpdatedAt time.Time `json:"updated_at" gorm:"updated_at"`
}

// TableName 表名称
func (*Config) TableName() string {
	return "dg_config"
}